package com.isoftstone.merchant.dao.mdept;

import com.isoftstone.merchant.entity.mdept.MDept;
import com.isoftstone.merchant.entity.mdept.SysUserDept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysUserDeptMapper {
    int insert(SysUserDept record);

    int insertSelective(SysUserDept record);

    void addUserDept(@Param("userid") String userid, @Param("deptid") String deptid)throws Exception;

   // void updateUserDeptByUserIdAndDeptId(@Param("userid") String userid, @Param("deptid") String deptid) throws Exception;

    List<SysUserDept>  getUserDeptByUserId(@Param("userid") String userid) throws Exception;

    void deleteUserDept(@Param("userid") String userid) throws Exception;

    void deleteUserDeptBydeptId(@Param("deptid") String deptid)throws Exception;

    List<String> getDeptIdByUserId(@Param("userid") String userid)throws Exception;

    List<SysUserDept> getDeptIdAndNameByUserId(@Param("userid") String userid)throws Exception;
}